package com.ruoyi.coal.common.utils;
import io.netty.handler.timeout.ReadTimeoutHandler;
import java.util.concurrent.TimeUnit;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Component
@Scope("prototype")
public class MyReadTimeoutHandler extends ReadTimeoutHandler {
    private static final Logger log = LoggerFactory.getLogger(com.ruoyi.coal.common.utils.MyReadTimeoutHandler.class);

    public static final long READ_TIMEOUT = 30L;

    public MyReadTimeoutHandler() {
        super(30L, TimeUnit.MINUTES);
    }
}

